package Model;

public class FinancialProduct {
    private Integer id; // 产品ID
    private String name; // 产品名称
    private String description; // 产品描述
    private Double interestRate; // 年化利率
    private Boolean isActive; // 产品是否上架

    // 默认构造函数
    public FinancialProduct() {}

    // 带参数的构造函数
    public FinancialProduct(Integer id, String name, String description, Double interestRate, Boolean isActive) {
        this.id = id;
        this.name = name;
        this.description = description;
        this.interestRate = interestRate;
        this.isActive = isActive;
    }

    // Getter 和 Setter 方法

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getInterestRate() {
        return interestRate;
    }

    public void setInterestRate(Double interestRate) {
        this.interestRate = interestRate;
    }

    public Boolean getIsActive() {
        return isActive;
    }

    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }
}
